





<input type="text"  placeholder="姓名"  [(ngModel)]="sfzform.xm" />
<br/>
<input type="text" placeholder="身份证号" [(ngModel)]="sfzform.sfzh">
<br/>
<button (click)="save()" >保存</button>
<button (click)="clear()">清空</button>

<table>
  <tr>
    <th>姓名</th>
    <th>身份证号</th>
    <th>出生日期</th>
    <th>出生地</th>
    <th>性别</th>
    <th>操作</th>
  </tr>
  <tr *ngFor="let s of sl">
    <td>{{s.xm}}</td>
    <td>{{s.sfzh}}</td>
    <td>{{s.csrq}}</td>
    <td>{{s.csd}}</td>
    <td>{{s.xb}}</td>

    <td>
      <button (click)="toUpdate(s)">修改</button>
      <button (click)="delete(s)">删除</button>
    </td>
  </tr>


</table>
